-- GENERATED SPELL FOR [Dreamtracker] --


function spell0_12496(pUnit, Event) --@Corrosive Acid Breath,n/a--
pUnit:FullCastSpellOnTarget(20667,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12496', 30000, 1)
end

function spell1_12496(pUnit, Event) --@Terrifying Screech,Self--
pUnit:FullCastSpellOnTarget(6605,pUnit)
pUnit:RegisterEvent('Sorts_12496', 5500, 1)
end

function Sorts_12496(pUnit, Event)
local choix_sorts_12496 = math.random(0, 1)
if choix_sorts_12496 == 0 then
pUnit:RegisterEvent('spell0_12496', 1, 1)
end
if choix_sorts_12496 == 1 then
pUnit:RegisterEvent('spell1_12496', 1, 1)
end
end

function mob12496_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12496', math.random(1500, 3000), 1)
end

function mob12496_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12496_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12496_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12496, 1, 'mob12496_Action')
RegisterUnitEvent(12496, 2, 'mob12496_Leave')
RegisterUnitEvent(12496, 3, 'mob12496_Kill')
RegisterUnitEvent(12496, 4, 'mob12496_Die')
